package com.kfm.loginIp.controller;

import com.kfm.loginIp.util.KeyStore;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author Aurora雪
 */
@RestController
public class PublicKeyController {
    @GetMapping("/public-key")
    public String getPublicKey() {
        String publicKey = KeyStore.getInstance().getPublicKey();// 从文件中获取公钥
        return publicKey;
    }
}
